<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>系统管理首页</title>
    <link rel="stylesheet" href="../css/main.css">
    <link rel="stylesheet" href="../css/bootstrap.css">
    <style>
        li{list-style: none;}
        a:visited{color: white}
    </style>
</head>
<body>
<!--顶部，主体-->
<div class="container">
    <div class="row text-center bg-black text-white">
        <div class="col-2">
            <img src="../img/2.jpg" alt="" width="50%">
        </div>
        <div class="col-8">欢迎词</div>
        <div class="col-2">
            <span>当前用户：</span>
            <span th:text="${username}"></span>
            <span><a href="/logout">退出</a></span>
        </div>
    </div>
    <div class="row" style="min-height: 400px">
        <div class="col-2 bg-black text-white pt-5">
            <li class="m-2">
                <a href="/main">管理首页</a>
            </li>
            <li class="m-2">
                <a href="/goods/goodsList">商品模块</a>
            </li>
            <li class="m-2">
                <a href="/supplier/supplierList">供应商模块</a>
            </li>
            <li class="m-2">
                <a href="/user">管理用户模块</a>
            </li>
        </div>
        <div class="col-10 pt-2">
            <!--      新增表单区      -->
            <form method="post" action="/purchase/purchaseAddProcess">
                <div class="form-control">
                    <label for="">供应商名称</label>
                    <input type="text" name="supplier" id="">
                </div>
                <div class="form-control">
                    <label for="">商品名称</label>
                    <input type="text" name="name" id="">
                </div>
                <div class="form-control">
                    <label for="">商品种类</label>
                    <input type="text" name="category" id="">
                </div>
                <div class="form-control">
                    <label for="">进货数量</label>
                    <input type="text" name="number" id="">
                </div>
                <div class="form-control">
                    <label for="">进货价格</label>
                    <input type="text" name="price" id="">
                </div>
                <div class="form-control">
                    <label for="">进货日期</label>
                    <input type="date" name="time" id="">
                </div>
                <div class="form-control">
                    <label for="">总金额</label>
                    <input type="text" name="amount" id="">
                </div>
                <div class="form-control">
                    <input type="submit" value="提交">
                </div>
            </form>
        </div>
    </div>
    <div class="footer text-center bg-black text-white">
        @2023-2028，21106123马璐璐版权所有
    </div>
</div>


<!--<p>这是系统管理首页，欢迎登录</p >-->
<!--<tr th:each="user:${data}">-->
<!--    <td th:text="${user.name}"></td>-->
<!--    <td th:text="${user.password}"></td>-->
<!--</tr>-->
</body>
</html>